import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { MessageService,UserRo } from './message.service';
@Controller('message')
export class MessageController {
  constructor(private readonly MessageService: MessageService) {}

  @Post('create')
   async create(@Body() body:any) {
    return await this.MessageService.create(body);
  }
  @Get()
  async findAll() {
    return await this.MessageService.findAll();
  }
}
